IApi.EnableAutoConfig 方法

允许启用自动配置,自动为伺服驱动器配置 EtherCAT 设定。

命名空间IntervalZero.KINGSTAR.Base.Api

组合: IntervalZero.KINGSTAR.Base.Api (于 IntervalZero.KINGSTAR.Base.dll) 版本:4.4.0.0

语法

C#VB
KsError EnableAutoConfig(
       bool Active
)
Function EnableAutoConfig(
       Active As Boolean
) As KsError

参数

Active

型别:bool

true:启用自动配置;false:停用自动配置。预设为 true

回传值

型别:KsError

方法的回传值。

备注

此方法须在 CreateCreateAsync 后及 Start 前呼叫。

可用的 EtherCAT 状态

ecatOffline

范例

C#
N/A

参见

IApi 介面

IntervalZero.KINGSTAR.Base.Api 命名空间